package adapters;

import java.util.List;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import beans.Comanda;

public class ComandaAdapter extends BaseAdapter {

	private Context context;
	private List<Comanda> comandas;
	
	public ComandaAdapter(Context context, List<Comanda> comandas) {
		super();
		this.context = context;
		this.comandas = comandas;
	}

	@Override
	public int getCount() {
		return comandas.size();
	}

	@Override
	public Object getItem(int position) {
		return comandas.get(position);
	}

	@Override
	public long getItemId(int position) {
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		Comanda c = (Comanda)getItem(position);
		LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		View v = inflater.inflate(0x7f030001, null);
		
		return null;
	}

}
